﻿namespace Asistente.Model.Representation
{
    public class Filter : EditablePanel
    {
        public override Panel Clone()
        {

            Filter newPanel = new Filter();
            newPanel.Name = this.Name;
            newPanel.Entity = Entity;
            foreach (Entity item in UpdatesDeletesCascade)
            {
                newPanel.UpdatesDeletesCascade.Add(item);
            }
            foreach (Control ctrl in base.Controls)
            {
                newPanel.Controls.Add(ctrl);
            }

            return newPanel;
        }
    }
}
